package net.ustc.javamemcached.protocol;

import org.jboss.netty.buffer.ChannelBuffer;

public class ResponseMessage {
	private ChannelBuffer command;
	private ChannelBuffer responseMessage;
	private boolean status = false;
	private boolean noreply = false;

	public ResponseMessage(ChannelBuffer command,
			ChannelBuffer responseMessage, boolean status, boolean noreply) {
		this.command = command;
		this.responseMessage = responseMessage;
	}

	public void getResponseMessage(ChannelBuffer responseMessage) {
		this.responseMessage = responseMessage;
	}

	public void getCommand(ChannelBuffer command) {
		this.command = command;
	}

	public boolean getStatus() {
		return status;
	}
	
	public boolean getNoreply(){
		return noreply;
	}

}
